package com.ntd.frame.awt.component;

import javax.swing.*;

public class NtdButton extends JButton {

    private String text = "按钮";
    private int width = 100;
    private int height = 30;

    public NtdButton(String text, int width, int height) {
        this.text = text;
        this.width = width;
        this.height = height;
        init();
    }

    public NtdButton(String text) {
        this.text = text;
        init();
    }

    public NtdButton() {
        init();
    }

    private void init() {
        this.setText(text);
        this.setSize(width, height);
    }
}
